home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global ReadGlossary
- if ReadGlossary then
- set ReadGlossary to 0
- set fileName to the pathName & "Glossary:Gloss.txt"
- set theFile to FileIO(mnew, "read", fileName)
- set lineNum to 1
- set done to 0
- repeat while not done
- set aLine to theFile(mReadLine)
- if aLine = EMPTY then
- set done to 1
- next repeat
- end if
- set aWord to item 1 of aLine
- put aWord & RETURN into line lineNum of field "Glossary"
- set theLabel to item 2 of aLine
- set theVisual to item 3 of aLine
- put theLabel & "," & theVisual into line lineNum of field "GlossaryData"
- set lineNum to lineNum + 1
- end repeat
- theFile(mdispose)
- end if
- cursor(-1)
- end
-